import { useCounterStore } from '../store'

export default {
    install(Vue: any) {
        const counterStore = useCounterStore();
        Vue.mixin({
            data() {
                return {
                    showNum: 1,
                }
            },
            computed: {
                useCount() {
                    return counterStore.count * 10;
                }
            }
        })
    }
}